#ifndef FORM_RECIPEACOUNT_H
#define FORM_RECIPEACOUNT_H

#include <QWidget>
#include <QSqlQuery>
//#include <QPrinter>
#include "pub_pop_delay.h"
#include <QSqlQueryModel>

namespace Ui {
class Form_recipeAcount;
}

class Form_recipeAcount : public QWidget
{
    Q_OBJECT

public:
    explicit Form_recipeAcount(QWidget *parent = nullptr);
    ~Form_recipeAcount();

signals:

    void destroyW(QString);

private slots:
    void closeEvent(QCloseEvent *event);
    void on_pbExit_clicked();
    void on_pbGenerate_clicked();
    void on_deStart_dateChanged(const QDate &date);

    void on_cbb_dept_currentTextChanged(const QString &arg1);

    void on_pb_count_clicked();

    void on_rb_invalid_recipe_clicked();

    void on_rbCfdp_clicked();

    void on_rb_count_doct_clicked();

    void on_rbSffs_clicked();

private:
    Ui::Form_recipeAcount *ui;
    QSqlQuery *qro, *qro1, *qro2, *qrm;

    QSqlQueryModel * md_query;

    QString  bzPrinter, sq;
    QString recipe_depts , employees; //药房编码， 人员编码

    QString recipe_doct_code, recipe_dept_code ;

    Pub_pop_delay * dlgDelay;

    bool initial_finished;
};

#endif // FORM_RECIPEACOUNT_H
